#ifndef VoETelephoneEventObserverImpl_H
#define VoETelephoneEventObserverImpl_H

#include "jni_api.h"
#include "voe_dtmf.h"

class VoETelephoneEventObserverImpl : public webrtc::VoETelephoneEventObserver, public JniCallbackGlobal
{
public:
	VoETelephoneEventObserverImpl(void);
	~VoETelephoneEventObserverImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:		//webrtc::VoETelephoneEventObserver
	virtual void OnReceivedTelephoneEventInband(
		int channel,
		int eventCode,
		bool endOfEvent);

	virtual void OnReceivedTelephoneEventOutOfBand(
		int channel,
		int eventCode,
		bool endOfEvent);


protected:
	jmethodID m_mid_OnReceivedTelephoneEventInband;
	jmethodID m_mid_OnReceivedTelephoneEventOutOfBand;
};

#endif //!VoETelephoneEventObserverImpl_H
